/*
 * @Date: 2024-11-22 19:47:01
 * @Author: LiSong
 * @LastEditors: LiSong
 * @LastEditTime: 2024-12-30 13:48:26
 * @Description: 入口文件
 */
import { setupPanel } from './panels/index.js'
import { setupAttrEditors } from './editors/index.js'
import { pluginManager } from '@hp/utils/pluginManager.js'

import { addDirective } from '@hp/directive'

import HpRender from './render/src/Render.vue'
import HpDesigner from './design/src/designer.vue'

const setupHomePage = (app) => {
  setupPanel(pluginManager)
  setupAttrEditors(pluginManager)
  addDirective(app)
}

export {
  HpRender,
  HpDesigner,
  setupHomePage,
}
